package com.pc.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 李林雨
 * @createTime 2023/5/26 23:47
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {

        private String msg;//返回
        private boolean status;
        private Object data;

        public static Result success(String message){
            return new Result(message,true,null);
        }
        public static Result success(String message, Object data){
            return new Result(message,true,data);
        }
        public static Result fail(String message){
            return new Result(message,false,null);
        }
        public static Result fail(String message, Object data){
            return new Result(message,false,data);
        }


}
